<?php
namespace catchAdmin\externalGoods\model\search;
use think\facade\Db;

trait NotifySearch
{
    //通知类型名称
    public function searchTypeAttr($query, $value, $data){
        return $query->where('type', $value);
    }
}